﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.UDT.Add" %>

<!doctype html>
<html>
<head runat="server">
    <title>自定义标签添加</title>
    <meta charset="utf-8" />
    <meta http-equiv="Pragma" content="No-cach" />
    <%: Styles.Render("~/Content/Bootstrap/css") %>
    <%: Scripts.Render("~/Scripts/AdminBase") %>
 
    <style type="text/css">
        .RowTitle {
            width: 100px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
            
                <BootStrap:Breadcrumb ID="BC_Path" runat="server"></BootStrap:Breadcrumb>
                <asp:Wizard ID="Wizard1" runat="server" Width="100%" ActiveStepIndex="0" DisplayCancelButton="True"
                    OnNextButtonClick="Wizard1_NextButtonClick"
                    OnFinishButtonClick="Wizard1_FinishButtonClick">
                    <FinishCompleteButtonStyle Cssclass="btn btn-default" />
                    <FinishPreviousButtonStyle Cssclass="btn btn-default" />
                    <WizardSteps>
                        <asp:WizardStep runat="server" Title="1、基本设置">
                            <table style="width: 100%;" border="0" cellpadding="0" cellspacing="0" bordercolorlight="white">
                                <tr>
                                    <td class="RowTitle">标签名称：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtName" runat="server" Width="250px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr style="display: none">
                                    <td class="RowTitle">调用方式：
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="ddlType" runat="server">
                                             <asp:ListItem Value="0" Selected="True">普通</asp:ListItem>
                                            <asp:ListItem Value="1">Ajax</asp:ListItem>
                                            <asp:ListItem Value="2">数据调用JS</asp:ListItem>
                                            <asp:ListItem Value="3">静态JS</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr id="trJsPath" runat="server">
                                    <td class="RowTitle">JS保存路径：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtJsPath" runat="server" Width="300px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="RowTitle">链接类型：
                                    </td>
                                    <td>
                                        <asp:DropDownList ID="dllURLType" runat="server">
                                            <asp:ListItem Value="ContentShowURL">内容页</asp:ListItem>
                                            <asp:ListItem Value="ClassURL">栏目列表页</asp:ListItem>
                                            <asp:ListItem Value="SpecialURL">专题列表页</asp:ListItem>
                                            <asp:ListItem Selected="True">无</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="RowTitle">备注：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtRemark" runat="server" Height="100px" TextMode="MultiLine" Width="300px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="RowTitle">&nbsp;
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                            </table>
                        </asp:WizardStep>
                        <asp:WizardStep runat="server" Title="2、数据查询">
                            <table style="width: 100%;">
                                <tr>
                                    <td class="RowTitle">连接字符：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtDataSource" runat="server" Width="98%"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="RowTitle">Sql代码：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtSqlScript" runat="server" Height="100px" TextMode="MultiLine"
                                            Width="98%"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="RowTitle">&nbsp;
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                </tr>
                            </table>
                        </asp:WizardStep>
                        <asp:WizardStep runat="server" Title="3、模板设置">
                            <table style="width: 100%;">
                                <tr>
                                    <td class="RowTitle">第一条数据模板</td>
                                    <td>
                                        <asp:TextBox ID="txtFirstItemTemplate" runat="server" Height="100px"
                                            TextMode="MultiLine" Width="98%"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="RowTitle">第二条数据模板</td>
                                    <td>
                                        <asp:TextBox ID="txtSecondItemTemplate" runat="server" Height="100px"
                                            TextMode="MultiLine" Width="98%"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="RowTitle">间隔模板</td>
                                    <td>
                                        <asp:TextBox ID="txtAlternatingItemTemplate" runat="server" Height="100px"
                                            TextMode="MultiLine" Width="98%"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="RowTitle">分隔符模板</td>
                                    <td>
                                        <asp:TextBox ID="txtSeparatorTemplate" runat="server" Height="100px"
                                            TextMode="MultiLine" Width="98%"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="RowTitle">&nbsp;</td>
                                    <td>定义如何显示各项之间的分隔符模板</td>
                                </tr>
                                <tr>
                                    <td class="RowTitle">循环项模板： 
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtItemTemplate" runat="server" Height="100px"
                                            TextMode="MultiLine" Width="98%"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="RowTitle">头模板：</td>
                                    <td>
                                        <asp:TextBox ID="txtHeaderTemplate" runat="server" Height="100px"
                                            TextMode="MultiLine" Width="98%"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="RowTitle">脚模板：</td>
                                    <td>
                                        <asp:TextBox ID="txtFooterTemplate" runat="server" Height="100px"
                                            TextMode="MultiLine" Width="98%"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="RowTitle">空数据模板： 
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtEmptyTemplate" runat="server" Height="100px"
                                            TextMode="MultiLine" Width="98%">没有数据！</asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="RowTitle">说明：
                                    </td>
                                    <td>没有数据的时候的说明文字。</td>
                                </tr>
                            </table>
                        </asp:WizardStep>
                        <asp:WizardStep runat="server" Title="4、完成">
                            请点击“完成”保存标签，然后在模板里加上一下标签。
                         
                        <br />
                            <asp:TextBox ID="txtTiShi" runat="server" Rows="5" TextMode="MultiLine"
                                Width="90%"></asp:TextBox>

                        </asp:WizardStep>
                    </WizardSteps>
                    <NavigationButtonStyle Cssclass="btn btn-default" />
                    <SideBarStyle Width="90px" VerticalAlign="Top" />
                    <CancelButtonStyle Cssclass="btn btn-default" />
                </asp:Wizard>
                <asp:TextBox ID="txtTag" runat="server" Height="200px" TextMode="MultiLine" Width="98%"
                    Visible="False"></asp:TextBox>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
